package com.my.study.exception;

/**
 * @author: yidujun
 * @create: 2021/05/12 14:48
 */
public class BusinessException extends Exception {

    private int code;

    private String message;

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        this.code = 500;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
